package com.CNMedical.system.mapper;

import java.util.List;

import com.diboot.core.mapper.BaseCrudMapper;
import com.CNMedical.system.domain.entity.AppletLearningHistory;

/**
 * 学习历史Mapper接口
 * 
 * @author tang
 * @date 2023-03-28
 */
public interface AppletLearningHistoryMapper extends BaseCrudMapper<AppletLearningHistory>
{
    /**
     * 查询学习历史
     * 
     * @param id 学习历史主键
     * @return 学习历史
     */
    public AppletLearningHistory selectAppletLearningHistoryById(Long id);

    /**
     * 查询学习历史列表
     * 
     * @param appletLearningHistory 学习历史
     * @return 学习历史集合
     */
    public List<AppletLearningHistory> selectAppletLearningHistoryList(AppletLearningHistory appletLearningHistory);

    /**
     * 新增学习历史
     * 
     * @param appletLearningHistory 学习历史
     * @return 结果
     */
    public int insertAppletLearningHistory(AppletLearningHistory appletLearningHistory);

    /**
     * 修改学习历史
     * 
     * @param appletLearningHistory 学习历史
     * @return 结果
     */
    public int updateAppletLearningHistory(AppletLearningHistory appletLearningHistory);

    /**
     * 删除学习历史
     * 
     * @param id 学习历史主键
     * @return 结果
     */
    public int deleteAppletLearningHistoryById(Long id);

    /**
     * 批量删除学习历史
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteAppletLearningHistoryByIds(Long[] ids);
}
